import os

KANBAN_ROOT = os.path.abspath(
	os.path.join(
		os.path.dirname(__file__),
		".."
	)
)

def make_abs_path(path):
	return os.path.abspath(os.path.join(KANBAN_ROOT, path))

def get_ext_location():
	if os.path.exists(make_abs_path('public/ext')):
		return '/ext'
	else:
		return 'http://jplessis.free.fr/javascript/ext/'

